package com.atguigu.guli.service.edu.service;

import com.atguigu.guli.service.base.dto.CourseDto;
import com.atguigu.guli.service.edu.entity.Course;
import com.atguigu.guli.service.edu.entity.CourseInfoForm;
import com.atguigu.guli.service.edu.entity.query.ApiCourseQuery;
import com.atguigu.guli.service.edu.entity.search.CourseInfoSearch;
import com.atguigu.guli.service.edu.entity.vo.ApiCourseDetailVo;
import com.atguigu.guli.service.edu.entity.vo.CourseDetailVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author leo
 * @since 2021-11-24
 */
public interface CourseService extends IService<Course> {

    String saveCourseInfo(CourseInfoForm courseInfoForm);

    void updateCourseInfo(CourseInfoForm courseInfoForm, String courseId);

/*    Page<CourseDetailVo> listPage(Integer pageNum, Integer pageSize);*/

    void getInfoSearch(Page<CourseDetailVo> page, CourseInfoSearch courseInfoSearch);

    List<Course> getCoursesByTeacherId(String teacherId);

    List<Course> getCoursesByCondition(ApiCourseQuery apiCourseQuery);

    ApiCourseDetailVo getCourseDetailById(String courseId);

    List<Course> getHotCourses();

    CourseDto getCourseDto(String courseId);

}
